package com.niguang.govt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 12380
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_salary_log")
public class SalaryLog extends Model<SalaryLog> {

    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String CREATE_USER_NAME = "create_user_name";
    public static final String TEAM_ID = "team_id";
    public static final String SALARY_DATE = "salary_date";
    public static final String TYPE_NAME = "type_name";
    public static final String TYPE_DESC = "type_desc";
    public static final String CREATE_TIME = "create_time";
    public static final String PAY_WAY = "pay_way";
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 员工用户id
     */
    private Long userId;
    /**
     * 操作人姓名
     */
    private String createUserName;
    /**
     * 班组Id
     */
    private Long teamId;
    /**
     * 工资时间
     */
    private String salaryDate;
    private String typeName;
    private String typeDesc;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 计薪方式 1-点工 2-包工 3-月薪
     */
    private Integer payWay;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
